/**
 * Created by hps on 17-4-27.
 */
public class StackApp {
    public static void main(String[] args) {
        StackX stackX = new StackX(10);

        stackX.push(20);
        stackX.push(40);
        stackX.push(60);
        stackX.push(80);

        while (!stackX.isEmpty()) {
            long value = stackX.pop();
            System.out.print(value + " ");
        }

        System.out.println();
    }
}
